home *** CD-ROM | disk | FTP | other *** search
-
-
-
- rrrrcccc2222((((1111MMMM)))) rrrrcccc2222((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- rc2 - run commands required for multi-user environment
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////eeeettttcccc////rrrrcccc2222
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ////eeeettttcccc////rrrrcccc2222 is executed via an entry in /_e_t_c/_i_n_i_t_t_a_b and is responsible for
- the initializations that bring the system to a ready-to-use state,
- traditionally state 2, which is called the "multi-user" state.
-
- /_e_t_c/_r_c_2 runs files beginning with SSSS in /_e_t_c/_r_c_2._d. These files are
- executed by /_b_i_n/_s_h in ascii sort-sequence order (see FFFFIIIILLLLEEEESSSS below for
- more information).
-
- Each of these files may also check the state of the corresponding
- _c_h_k_c_o_n_f_i_g flag for that function. If the state is oooonnnn, the script starts
- that function; if the state is ooooffffffff, it does not start that function.
- (See _c_h_k_c_o_n_f_i_g(1M)).
-
- The functions performed by the /_e_t_c/_r_c_2 command and associated /_e_t_c/_r_c_2._d
- files include:
-
- Setting and exporting the TIMEZONE variable.
-
- Setting-up and mounting the user (/_u_s_r) and other filesystem(s).
-
- Cleaning up (remaking) the /_t_m_p directory.
-
- Initializing the network interfaces, mounting network filesystems,
- and starting the appropriate daemon processes.
-
- Starting the _c_r_o_n daemon by executing /_e_t_c/_c_r_o_n.
-
- Cleaning up (deleting) uucp locks status, and temporary files in the
- /_v_a_r/_s_p_o_o_l/_u_u_c_p directory.
-
- Other functions can be added, as required, to support the addition of
- hardware and software features.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- The following are simplified examples of the files found in /_e_t_c/_r_c_2._d.
- The filenames are prefixed by an SSSS and a number indicating the execution
- order of the files.
-
- filesystems
- # set up and mount filesystems
- cd /
- fsck -m -c -y
- /etc/mount -at efs
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- rrrrcccc2222((((1111MMMM)))) rrrrcccc2222((((1111MMMM))))
-
-
-
- rmtmpfiles
- # clean up /tmp
- rm -rf /tmp
- mkdir /tmp
- chmod 777 /tmp
- chgrp sys /tmp
- chown sys /tmp
-
- uucp
- # clean-up uucp locks, status, and temporary files
- rm -rf /var/spool/locks/*
-
- The file /_e_t_c/_T_I_M_E_Z_O_N_E is included early in /_e_t_c/_r_c_2, thus establishing
- the default time zone for all commands that follow.
-
- See _r_c_0(1M) for the system shutdown procedure.
-
- FFFFIIIILLLLEEEESSSS
- Files in /_e_t_c/_r_c_2._d must begin with an SSSS or a KKKK followed by a number and
- the rest of the filename. Upon entering run level 2, files beginning
- with SSSS are executed with an argument of ssssttttaaaarrrrtttt ;;;; if entering run level 2
- from some state other than single-user mode (ie: from other than run
- level 1 or s), files beginning with KKKK, are first executed with an
- argument of ssssttttoooopppp. Files in /_e_t_c/_r_c_2._d are typically symbolic links to
- files in /_e_t_c/_i_n_i_t._d. Files beginning with other characters are ignored.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- rc0(1M), shutdown(1M).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-